package base

//ConfifFormat 代表配置的加载类型
type ConfigFormat uint8

const (
	//FORMAT_DEFAULT 默认加载方式
	FORMAT_DEFAULT ConfigFormat = 0
	//FORMAT_HOT 热加载方式
	FORMAT_HOT ConfigFormat = 1
)

type Notifyer func(config BaseConfig)

type BaseConfig interface {
	GetInt(key string) (int, error)
	GetIntDefault(key string, defaultInt int) int
	GetString(key string) (string, error)
	GetStringDefault(key, defaultString string) string
	GetInterface(key string) (interface{}, error)
	GetMap(key string) (map[string]interface{}, error)
}
